import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 细纱BOM
 * */
// 创建
export const productionSpunYarnBomCreate = (data) => postRequest('/production/spun-yarn-bom/create', data);

// 更新
export const productionSpunYarnBomUpdate = (data) => putRequest('/production/spun-yarn-bom/update', data);

// 删除
export const productionSpunYarnBomDelete = (params) => deleteRequest('/production/spun-yarn-bom/delete', params);

// 获得
export const productionSpunYarnBomGet = (params) => getRequest('/production/spun-yarn-bom/get', params);

// 获得分页
export const productionSpunYarnBomPage = (params) => getRequest('/production/spun-yarn-bom/page', params);

// 导出 Excel
export const productionSpunYarnBomExportExcel = (params) => getRequest('/production/spun-yarn-bom/export-excel', params);

// 提交
export const productionSpunYarnBomSubmitAudit = (params) => postRequest('/production/spun-yarn-bom/submit-audit', params);
// 撤销提交
export const productionSpunYarnBomClearSubmitAudit = (params) => postRequest('/production/spun-yarn-bom/clear-submit-audit', params);
// 审核
export const productionSpunYarnBomAudit = (params) => postRequest('/production/spun-yarn-bom/audit', params);
// 撤销审核
export const productionSpunYarnBomClearAudit = (params) => postRequest('/production/spun-yarn-bom/clear-audit', params);
// 保存并审核
export const productionSpunYarnBomCreateAudit = (params) => postRequest('/production/spun-yarn-bom/create-audit', params);
// 更新并审核
export const productionSpunYarnBomUpdateAudit = (params) => putRequest('/production/spun-yarn-bom/update-audit', params);
// 关闭
export const productionSpunYarnBomClose = (params) => postRequest('/production/spun-yarn-bom/close', params);
// 撤销关闭
export const productionSpunYarnBomClearClose = (params) => postRequest('/production/spun-yarn-bom/clear-close', params);
